package com.Jian.reggie.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.Jian.reggie.impl.DishFlavor;
import com.Jian.reggie.service.DishFlavorService;
import com.Jian.reggie.mapper.DishFlavorMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 12646
* @description 针对表【dish_flavor(菜品口味关系表)】的数据库操作Service实现
* @createDate 2023-11-27 20:38:19
*/
@Service
public class DishFlavorServiceImpl extends ServiceImpl<DishFlavorMapper, DishFlavor>
    implements DishFlavorService{
  
  @Override
  public List<DishFlavor> listByDishId(Long id) {
    LambdaQueryWrapper<DishFlavor> queryWrapper = new LambdaQueryWrapper<>();
    queryWrapper.eq(DishFlavor::getDishId, id);
    List<DishFlavor> dishFlavorList = this.list(queryWrapper);
    return dishFlavorList;
  }
}




